package com.aloda.service;

import com.aloda.entity.Picture;
import com.aloda.query.PicPageDTO;
import com.aloda.result.PageResult;
import com.aloda.vo.picture.PicPageVO;
import com.aloda.vo.picture.PicUploadVO;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author aloda
* @description 针对表【picture】的数据库操作Service
* @createDate 2024-12-18 12:59:24
*/
public interface PictureService extends IService<Picture> {

    /**
     * 图片上传
     * @param file
     * @return
     */
    PicUploadVO adminUpload(MultipartFile file);

    /**
     * 分页查询
     * @param picPageDTO
     * @return
     */
    PageResult<PicPageVO> pageQuery(PicPageDTO picPageDTO);

    /**
     * 用户端头像图片上传
     * @param file
     * @return
     */
    PicUploadVO userUpload(MultipartFile file);

    /**
     * 导出图片信息到excel
     * @param response
     * @param ids
     */
    void exportPictureToExcel(HttpServletResponse response, List<Long> ids);

    /**
     * 管理端图片上传 云版本
     * @param file
     * @return
     */
    PicUploadVO adminCloudUpload(MultipartFile file);

    /**
     * 用户端图片上传 云版本
     * @param file
     * @return
     */
    PicUploadVO userCloudUpload(MultipartFile file);
}
